<style lang="scss" scoped>
  .wrap{
    position: relative;
    display: flex;
    width: 350px; height: 101px;
    border-bottom: 1px solid #E5E5E5;
    cursor: pointer;
  }

  .image{
    position: relative;
    display: block;
    width: 100px;
    &>img{
      background: #ccc;
    }
    &>.wait,.forbid,.timeout{
      height: 20px; width: 100%;
      background: #F5A623;
      color: #fff;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      line-height: 20px;
      font-size: 12px;
    }
    &>.forbid{
      background: #000;
      color: #fff;
    }
    &>.timeout{
      background:#FF523E;
      color: #fff;
    }
  }

  .block{
    flex: 1;
    position: relative;
  }

  .nickname{
    position: absolute;
    height:16px;
    font-size:16px;
    color:rgba(48,54,65,1);
    line-height:16px;
    left: 10px; top: 10px;
  }

  .icon{
    position: absolute;
    width: 14px; height: 20px;
    right: 10px; top: 12px;
  }
  .auth{
    position: absolute;
    bottom: 7px;
    height:17px;
    left: 10px;
    font-size:12px;
    color:rgba(48,54,65,1);
    line-height:17px;
  }
</style>

<template>
  <section class="wrap">
    <div class="image">
      <img src="" width="100%" height="100%"/>
    </div>

    <div class="block" v-if="!isWxProxyComponnent">
      <div class="nickname">请设置新子管理员</div>
      <div class="auth">管理期限：2018.01.22-2019.01.21</div>
    </div>

    <div class="block" v-else>
      <div class="nickname">请设置新微代理经销员</div>
      <div class="auth">代理期限：2018.01.22-2019.01.21</div>
    </div>

  </section>
</template>
<script>
  export default {
    data () {
      return {
        isWxProxyComponnent: false
      }
    },
    mounted () {
      this.isWxProxyComponnent = this.$el.hasAttribute('isWxProxyComponnent')
    }
  }
</script>
